/*
 * Copyright [duowan.com]
 * Web Site: http://www.duowan.com
 * Since 2005 - 2014
 */

package com.duowan.realtime.dao;

import java.util.List;

import com.duowan.common.util.page.Page;
import com.duowan.realtime.model.ServerInfo;
import com.duowan.realtime.query.ServerInfoQuery;

/**
 * tableName: server_info
 * [ServerInfo] 的Dao操作
 * 
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
*/
public interface ServerInfoDao {
	
	public void insert(ServerInfo entity);
	
	public int update(ServerInfo entity);

	public int deleteById(int id);
	
	public ServerInfo getById(int id);
	
	public List<ServerInfo> getAll();
	
	public ServerInfo getServerIps(String realtimeComputingGroup);

	public Page<ServerInfo> findPage(ServerInfoQuery query);	
	
}
